<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<html>
<head>
    <title>第一题</title>
    <script>
    function run()
    {
        var d =new Date();
        document.getElementById("clock").innerHTML=d.toLocaleString();
        setTimeout("run();",1000);
    }
    </script>
</head>
<body onload="run()">
<span id ="clock"></span>
</body>
</html>